package com.pf.责任链模式.java;

/**
 * 领导
 */
public abstract class Leader {

    /**
     * 领导姓名
     */
    private String name;

    /**
     * 下个审批领导
     */
    private Leader nextLeader;

    public Leader(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Leader getNextLeader() {
        return nextLeader;
    }
    public void setNextLeader(Leader nextLeader) {
        this.nextLeader = nextLeader;
    }

    /**
     * 请求审批处理
     *
     * @param leaveRequest
     */
    public abstract void handleRequest(LeaveRequest leaveRequest);


}
